inputString = input("请输入一个字符串:")
dict1 = dict()
for i in inputString:
    dict1.update([(i, dict1[i] + 1)]) if i in dict1 else dict1.update([(i, 1)])
print(dict1)
